num = 200


def test():
    global num  # global--设置内部定义的变量为全局变量
    num = 100


test()
print(num)
